<?php

namespace App\Trip\Plane\Requests;

use App\Trip\Enums\Plane\PlaneProviders;
use Illuminate\Http\Request;

class BeforeBookRequest
{
    private Request $req;

    public function __construct(Request $request)
    {
        $this->req = $request;
    }

    public function getBookingKey()
    {
        return $this->req->input('bookingKey');
    }

    public function getProvider(): PlaneProviders
    {
        return PlaneProviders::from($this->req->input('provider'));
    }
}